package com.aigou.admin.dao;

import com.aigou.admin.entity.ShopCart;

import java.util.List;

public interface ShopCartDAO {

    List<ShopCart> getAllShopCarts();

    ShopCart getShopCartById(String id);

    int addShopCart(ShopCart shopCart);

    int deleteShopCart(String id);

    int updateShopCart(ShopCart shopCart);

    List<ShopCart> findShopCartByUserId(String userId);

    /**
     * 查询行数的方法
     * @return
     */
    Integer selectShopCartCount();

    /**
     * 分页查询
     * @param start
     * @param row
     * @return
     */
    List<ShopCart> selectShopCartLimits(int start, int row);

}
